﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using ValidationT4Demo.Validation;

namespace ValidationT4Demo.Models
{
    public class Data
    {
        //[CustomValidation(typeof(DataValidation), "IsAgeValid")]
        [CustomValidation(typeof(DataValidation), DataValidation.IsAgeValidMethod)]
        public int Age { get; set; }
    }
}
